package com.ddwl.wallet;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import org.springframework.scheduling.annotation.EnableAsync;
import tk.mybatis.spring.annotation.MapperScan;


/**
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2019/7/31 13:34
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.ddwl"})
@MapperScan(basePackages = {"com.ddwl.wallet.dao.mapper"})
@EnableFeignClients(basePackages = {"com.ddwl.common.feign.api", "com.ddwl.common.feign.thirdparty"})
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@EnableDiscoveryClient
@EnableAsync
@EnableMongoRepositories("com.ddwl.wallet.repository")
public class WalletApplication {

    public static void main(String[] args) {
        SpringApplication.run(WalletApplication.class, args);
    }
}
